package com.huaqing.manage.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.huaqing.common.annotation.Excel;
import com.huaqing.common.core.domain.BaseEntity;

/**
 * 会员管理对象 member
 * 
 * @author cdutTang
 * @date 2025-02-28
 */
public class Member extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 会员ID */
    private Long memberId;

    /** 用户ID */
    private Long customerId;

    /** 会员等级（0普通 1黄金 2铂金） */
    @Excel(name = "会员等级", readConverterExp = "0=普通,1=黄金,2=铂金")
    private String level;

    /** 积分 */
    @Excel(name = "积分")
    private Long points;

    /** 用户名(关联字段) */
    @Excel(name = "用户名")
    private String username;

    public void setMemberId(Long memberId) 
    {
        this.memberId = memberId;
    }

    public Long getMemberId() 
    {
        return memberId;
    }
    public void setCustomerId(Long customerId) 
    {
        this.customerId = customerId;
    }

    public Long getCustomerId() 
    {
        return customerId;
    }
    public void setLevel(String level) 
    {
        this.level = level;
    }

    public String getLevel() 
    {
        return level;
    }
    public void setPoints(Long points) 
    {
        this.points = points;
    }

    public Long getPoints() 
    {
        return points;
    }

    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("memberId", getMemberId())
            .append("customerId", getCustomerId())
            .append("level", getLevel())
            .append("points", getPoints())
            .append("username", getUsername())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
